1450 // Mutual exclusion lock.
1451 struct spinlock {
1452   uint locked;       // Is the lock held?
1453 
1454   // For debugging:
1455   char *name;        // Name of lock.
1456   struct cpu *cpu;   // The cpu holding the lock.
1457   uint pcs[10];      // The call stack (an array of program counters)
1458                      // that locked the lock.
1459 };
1460 
1461 
1462 
1463 
1464 
1465 
1466 
1467 
1468 
1469 
1470 
1471 
1472 
1473 
1474 
1475 
1476 
1477 
1478 
1479 
1480 
1481 
1482 
1483 
1484 
1485 
1486 
1487 
1488 
1489 
1490 
1491 
1492 
1493 
1494 
1495 
1496 
1497 
1498 
1499 
